entrycompletion: Realize popup after setting screen
authorJonas Ådahl <jadahl@gmail.com>
Wed, 14 Mar 2018 03:54:02 +0000 (11:54 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 14 Mar 2018 07:37:26 +0000 (15:37 +0800)
commita48eaa195417396bdb43b760de45aabc85cda7f1
treebfaa0198731a4fea832c61aec62732215cdc2805
parent417e8d6ca4e4a147b1813ad502fc03d1b8b45c9c
entrycompletion: Realize popup after setting screen

Realization is done as a side effect of calling
_gtk_entry_completion_resize_popup(), but if this is done before the
GdkScreen of the GtkWindow is set up correctly, it may result in the
widget being unrealized when the screen is updated. This may happen
when the file dialog parent window is not using the default GdkDisplay.

To avoid this issue, realize the popup after the screen has been
properly set up.

Fixes #83 in gtk4
gtk/gtkentrycompletion.c